#include <stdint.h>
#define UPGRADE_START   1
#define UPGRADE_STOP    2
#define UPGRADE_BAK_APP_LEN 120*1024
#define UPGRADE_PACK_LEN 448

#define BANK1_BEGIN_ADDRESS 0x08000000
#define BANK2_BEGIN_ADDRESS 0x08080000
/**
 * @brief 升级模块初始化
 * @return int32_t OK：成功  ERROR_COM：失败
 */
int32_t app_upgrade_init(void);
